package thread;
import thread2.Fifo;
import thread2.Consumer;

//commment, aminek a funkcionalitasa konvergal a 0-hoz

public class Application {
	public static void main(String[] args) {
		Fifo f = new Fifo();
		Producer p0 = new Producer("p0", f, 1000);
		Consumer c0 = new Consumer(f, "c0", 100);
		Producer p1 = new Producer("p1", f, 1000);
		Consumer c1 = new Consumer(f, "c1", 100);
		Producer p2 = new Producer("p2", f, 1000);
		Consumer c2 = new Consumer(f, "c2", 100);
		Consumer c3 = new Consumer(f, "c3", 100);
		try{
			p0.start();
			p1.start();
			p2.start();
			c0.start();
			c1.start();
			c2.start();
			c3.start();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
